// LineCollection_BPA.cpp: implementation of the CLineCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Dat/LineCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CLineCollection_BPA::CLineCollection_BPA()
{

}

CLineCollection_BPA::~CLineCollection_BPA()
{

}

CLine_BPA* CLineCollection_BPA::GetFirstLine()
{
	return (CLine_BPA*)CCardCollection_BPA::GetFirstCard();
}

CLine_BPA* CLineCollection_BPA::Traverse(CLine_BPA *pLine, int nDirection)
{
	return (CLine_BPA*)CCardCollection_BPA::Traverse(pLine,nDirection);
}

CLine_BPA* CLineCollection_BPA::GetLine(char *strName1, double dkV1, char *strName2, double dkV2, char ID)
{
	CLine_BPA tempLine;
	strcpy(tempLine.m_strName1, strName1);
	tempLine.m_dkV1 = dkV1;
	strcpy(tempLine.m_strName2, strName2);
	tempLine.m_dkV2 = dkV2;
	tempLine.m_chCKTID = ID;
	return (CLine_BPA*) GetCard(&tempLine);
}
